#include<iostream>
using namespace std;

float x[30][30],n,m;
int i,j,l1,l2,aux;
int main()
{ cout<<"m=";cin>>m;
  cout<<"n=";cin>>n;
  cout<<"l1=";cin>>l1;
  cout<<"l2=";cin>>l2;

for(i=1;i<=m;i++)
  for(j=1;j<=n;j++)
    { cout<<"x["<<i<<"]["<<j<<"]";
      cin>>x[i][j];
    }

for(i=1;i<=n;i++)
{ aux=x[l1][i];
  x[l1][i]=x[l2][i];
  x[l2][i]=aux;
}

for(int i=1;i<=m;i++)
{
    for(int j=1;j<=n;j++)
    cout<<x[i][j]<<" ";
    cout<<"\n";
    }

cout<<"matricea este\n";
}
